toOption

open override fun toOption(): Option<Nothing>

Converts this Try to Option.

Return

None if this is Failure or Some if this is Success.